#!/bin/sh

# /cygdrive/f/backup/01_jm/code/jm-demo/jm-setting

arrayZ=(/cygdrive/f/backup/01_jm/code/jm-demo/jm-setting
  /cygdrive/f/backup/01_jm/code/jm-demo/jm-demo
  /cygdrive/f/backup/01_jm/code/projects/jm-lib
  /cygdrive/f/backup/01_jm/code/projects/cg 
  )

for item in ${arrayZ[*]}; do
  echo "Starting sync " . $item
  echo "    updating ..."
  svn up $item
  echo "    adding ..."
  cd $item
  svn add --force .
  echo "    commiting ..."
  svn ci -m 'auto comit' .
  
  echo "End sync " . $item
  echo "----------- next ------------"
done


echo "Finished ......"

# for item in {a..z}; do
#   echo $item
# done

